

#include "fbconnectcplus.h"

#include "../sleipner_config.h"

#ifdef _PLATFORM_IOS
#include "fbconnect_c.h"
#endif




FBConnectCPlus&          FBConnectCPlus::Instance()
{
    static FBConnectCPlus	Inst;
	return Inst;
}

FBConnectCPlus::FBConnectCPlus()
{
#ifdef _PLATFORM_IOS    
    FBC_Init();
#endif
}

void     FBConnectCPlus::ShareToWall( 
                                     const std::string& Name,
                                     const std::wstring& Caption,
                                     const std::wstring& Desc,
                                     const std::string& Link,
                                     const std::string& Image,
									 FBConnectInterface* pCallBackObj
                                     )
{
#ifdef _PLATFORM_IOS 
    
    FBC_Share(Name.c_str(),
              Caption.c_str(),
              Caption.size(),
              Desc.c_str(),
              Desc.size(),
              Link.c_str(),
              Image.c_str()
              );  
   
    
#endif    
}


